import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myflutterproject/basematerialwidgetsdemo.dart';
import 'package:myflutterproject/routes.dart';
import 'package:myflutterproject/utils/overScrollBehavior.dart';

class TextWidgetsDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('TextWidgets'),
        centerTitle: true,
      ),
      body: ScrollConfiguration(
        behavior: OverScrollBehavior(),
        child: ListView(
          children: <Widget>[
            ItemButton('Text', newText),
            ItemButton('RichText(一个富文本Text，可以显示多种样式的text。)', richtext),
            ItemButton('DefaultTextStyle(文字样式，用于指定Text widget的文字样式)', defaulttextstyle),
          ],
        ),
      ),
    );
  }
}
